package com.qn.common.base.model;

import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.Data;

import java.util.List;
/**
 * qingniu-cloud user source analysis
 *
 * @Author: TXG
 * @Date: 2024/6/11
 * @Version V0.0.2
 */

@Tag(name="分页返回")
public class BasicFetchPage<T> extends BaseEntity {

    public BasicFetchPage(long total,List<T>  items)
    {
        setTotal(total);
        setItems(items);
    }
    @Schema(description = "总数")
    public long total;

    @Schema(description = "数据")
    public List<T>  items;

    public long getTotal() {
        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }

    public List<T> getItems() {
        return items;
    }

    public void setItems(List<T> items) {
        this.items = items;
    }
}

